home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
qlib205.zip
/
QLIB.ZIP
/
H
/
STDARG.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-24
|
630b
|
27 lines
/* stdarg.h
Definitions for accessing parameters in functions that accept
a variable number of arguments.
*/
#ifndef __STDARG_H__
#define __STDARG_H__
#ifdef __VARARGS_H__
#error Can't include both STDARG.H and VARARGS.H
#endif
typedef void *va_list;
#define __size__(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int)-1))
#define va_start(ap, parmN) \
((void)((ap) = (va_list)((char _FAR *)(&parmN)+__size__(parmN))))
#define va_arg(ap, type) \
(*(type _FAR *)(((*(char _FAR *_FAR *)&(ap))+=__size__(type)) \
-(__size__(type))))
#define va_end(ap) ((void)0)
#endif /* __STDARG_H__ */